import request from "../utils/request";

//查询所有角色
export function findByCondition(pageNum, pageSize, data) {
  return request({
    url: "/rbacPerm/" + pageNum + "/" + pageSize,
    method: "post",
    data
  });
}

export function updatePermStatus(param) {
  return request({
    url: "/rbacPerm/" + param.id + "/" + param.status,
    method: "put"
  });
}

export function updateOne(data) {
  return request({
    url: "/rbacPerm/",
    method: "put",
    data
  });
}

export function addOne(data) {
  return request({
    url: "/rbacRole/",
    method: "post",
    data
  });
}
